﻿using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic; 
using System.Text;

namespace Tauren.Business.Entity.Model
{
    /// <summary>
    /// 字典类型
    /// </summary>
    [Table("dictionary")]
    public class Dictionary : EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public virtual long AutoId { get; set; }
        /// <summary>
        /// 上级ID
        /// </summary> 
        public virtual long ParentId { get; set; }        

        /// <summary>
        /// 编码
        /// </summary>        
        public virtual string Code { get; set; }

        /// <summary>
        /// 字典分类
        /// </summary>
        public virtual string Type { get; set; }

        /// <summary>
        /// 启用？？
        /// </summary>
        public virtual bool Enable { get; set; }

        /// <summary>
        /// 删除？？
        /// </summary>
        public virtual bool HaveDelete { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public virtual decimal? Sequence { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public virtual string Note { get; set; }

    }

    /// <summary>
    /// 字典资源数据
    /// </summary>
    [Table("dictionary_res")]
    public class DictionaryRes
    {
        [Key]
        public virtual long AutoId { get; set; }
        public virtual string Language { get; set; }
        public virtual string Value { get; set; }
        public virtual long DicId { get; set; }
    }
}
